<div id="div_navigation" class='p_10 m_r_10'>
	<div id='div_loginboxAction'></div>
	<?php include '/navigation/mainNavigation.php';	?>
	<?php include '/navigation/betNavigation.php';	?>
	<?php include '/navigation/storeOffers.php';	?>
</div>
<div id="div_content" class='p_10'>			
	<div id='div_left'>
		<div class='div_h2'>
			<div class='div_content'><h2>Capital de Weeteam</h2></div>
		</div>
		<div id='profile_capitalGraphique' class='contentZone'></div>
		
		<div class='div_h2'>
			<div class='div_content'><h2>Fil d'actualité de Weeteam</h2></div>
			<div class='div_options'>
				<span class='b'>Filtres</span> <div class='fl icon_16 optionsArrow'></div>
				<span class='action tiptip' action='onoffFeed' option='tickets' title='Afficher/Cacher les tickets'>Tickets</span>  
				<span class='action' action='onoffFeed' option='status'>Statuts</span>
				<span class='hideable hide action' action='onoffFeed' option='friendships'>Amitié</span> 
				<span class='action' action='moreFeedOption'>+</span>
			</div>
		</div>
		
		<span id='profile_viewNew' class='viewmore action blue hide' action='feed_viewNew' minID='100' target="#profile_feed">20+ nouvelles actualitées</span>
		
		<div id='profile_feed' class='contentZone'></div>
		
		<span id='profile_viewOld' class='viewmore action' action='feed_viewOld'  maxID='100'>afficher actualités plus ancienne</span>
	</div>
	<div id='div_right'>
		<div id='identitycard' class='b_ea'>
			<div class='div_h2'>
				<div class='div_content'><h2>Carte d'identité</h2></div>
			</div>
			<div class='div_userPicture'>
				<img src='<?php echo get_bloginfo('template_url');?>/style/generic/images/users/koala.png'/>
				<div class='txtr m_r_10'>
					<span class='action grey' action='deleteRelationship' relationshipID='10'>Retirer de ma liste d'amis</span>
				</div>
				
			</div>
			
			<div class='div_h3'>
				<div class='div_content'><h3>Retrouvez moi sur Internet</h3></div>
			</div>
			<div id='profile_socialmedia' class='contentZone p_t_5 p_l_5'>
				<a href='http://www.facebook.com' class='tiptip fl icon_34 socialmedia facebook' title='Ma page facebook'></a>
				<a href='http://www.facebook.com' class='tiptip fl icon_34 socialmedia google' title='Mon profil Google+'></a>
				<a href='http://www.facebook.com' class='tiptip fl icon_34 socialmedia twitter' title='Mon profil Tweeter'></a>
				<a href='http://www.facebook.com' class='tiptip fl icon_34 socialmedia website' title='Mon site Internet'></a>
				<span class='tiptip fl action icon_34 socialmedia email' action='openDiscussionWithUser' userID='10' title='Me contacter'></span>
			</div>
			<div class='div_h3'>
				<div class='div_content'><h3>Je consulte régulièrement (22)</h3></div>
			</div>
			<div class='contentZone friendlist'>
				<table>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
				</table>
			</div>
			<div class='div_h3'>
				<div class='div_content'><h3>Ils me consultent régulièrement (105)</h3></div>
			</div>
			<div class='contentZone friendlist'>
				<table>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
					<tr><td><img src='<?php echo get_bloginfo("template_url");?>/style/generic/images/users/default.png'><td><a href='' class='userNickname'>Test</a>
				</table>
			</div>
		</div>
		<div id='userStatistics' class='b_ea'>
			<div class='div_h2'>
				<div class='div_content'><h2>Quelques statistiques</h2></div>
			</div>
			<div id='profile_statisticsGraphics' class='contentZone'></div>
		</div>
	</div>
</div>

<script type="text/javascript">
	// chargement des parties dynamiques de la page courante
	$j.ajax({
		type : "POST",
		url : "<?php bloginfo('template_url'); ?>/ajax/getContent.php",
		data : "functionName=getFeedContent",
		success:function(html){
			$j("#profile_feed").html(html);
		}
	});	

	// chargement du graphique capital
	$j.ajax({
		type : "POST",
		url : "<?php bloginfo('template_url'); ?>/ajax/getContent.php",
		data : "functionName=getCapitalGraphique",
		success:function(html){
			$j("#profile_capitalGraphique").html(html);
		}
	});	

	// chargement du graphique statistiques
	$j.ajax({
		type : "POST",
		url : "<?php bloginfo('template_url'); ?>/ajax/getContent.php",
		data : "functionName=getStatsGraphics",
		success:function(html){
			$j("#profile_statisticsGraphics").html(html);
		}
	});	

	// affichage du bouton d'affichage des nouvelles actualités
	function refresh_btn_feed_viewNew(){
		var minID = $j("#profile_viewNew").attr('minID');
		$j.ajax({
			type : "POST",
			url : "<?php bloginfo('template_url'); ?>/ajax/getValue.php",
			data : "functionName=getCountNewsSinceArrived&feedType=<?php echo $getParameters[1]; ?>&minID="+ minID +"",
			success:function(response){
				if(response != ""){
					$j("#profile_viewNew").html(response + " nouvelles actualités");
					$j("#profile_viewNew").slideDown();
				}
			}
		});	
	}	
	setInterval("refresh_btn_feed_viewNew()",3000);
</script>